package eu.best.sercheng.examples;

import java.util.Collections;
import java.util.List;

import eu.best.sercheng.model.ResultQuery;
import eu.best.sercheng.model.dao.MainDao;
import eu.best.sercheng.model.dao.MainDaoImpl;

public class TryDatabaseSearch {

	public static void main(String[] args) {
		MainDao dao = new MainDaoImpl();
		List<ResultQuery> resultsForKeyword = dao.getResultsForKeyword("about");
		Collections.sort(resultsForKeyword);		
		for (ResultQuery resultQuery : resultsForKeyword) {
			System.out.println(resultQuery);
		}
		
		
		

		System.out.println("done");
	}
	
}
